package com.kehutong.department.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.sql.Timestamp;

/**
 * TODO
 * 三方企业对接配置表
 * @author zhouweipeng
 * @version 1.0
 * @date 2021/9/8 14:45
 */
@Table(value="t_third_enterprise_config", comment="第三方企业调接口配置信息", multi=true, idType= IDType.UUID)
public class ThirdEnterpriseConfig extends Entity {
    private static final long serialVersionUID = 1705693386213585329L;

    protected ThirdEnterpriseConfig(String id) {
        super(id);
    }

    @Column(comment="企业编号")
    private String companyNo; //企业编号

    @Column(comment="配置信息",length = 200)
    private String ext;  //配置信息json,比如url、appKey、secret等

    @Column(comment="员工数据最后同步时间")
    private Timestamp lastTime;

    @Column(comment="部门数据最后同步时间")
    private Timestamp lepartmentLastTime;

    @Column(comment="公司编码")
    private String code;

    public Timestamp getLepartmentLastTime() {
        return lepartmentLastTime;
    }

    public void setLepartmentLastTime(Timestamp lepartmentLastTime) {
        this.lepartmentLastTime = lepartmentLastTime;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Timestamp getLastTime() {
        return lastTime;
    }

    public void setLastTime(Timestamp lastTime) {
        this.lastTime = lastTime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
